package com.linjacy.httpproject.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import java.io.Serializable;

import lombok.Data;
import lombok.experimental.Accessors;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import org.apache.ibatis.type.JdbcType;
import com.baomidou.mybatisplus.annotation.FieldStrategy;



/**
 * <p>
 * 项目前期节点表
 * </p>
 *
 * @author wxq
 * @since 2021-10-15
 */

@Data
//@Accessors(chain = true)
@TableName("pm_previous_node")
public class PreviousNodeDO implements Serializable  {

    private static final long serialVersionUID = 1L;
    @TableId("node_id")
    private String nodeId;
    /**
     * 项目id
     */
    @TableField(value = "item_id")
    private String itemId;
    /**
     * 前期节点字典code->drcpm_item_qqjd
     */
    @TableField(value = "previous_code")
    private String previousCode;
    /**
     * 完成情况->drcpm_qqjd_wcqk
     */
    @TableField(value = "complate_state")
    private String complateState;
    /**
     * 完成时间
     */
    @TableField(value = "complate_date", updateStrategy = FieldStrategy.IGNORED,  jdbcType=JdbcType.TIMESTAMP)
    private Date complateDate;
    /**
     * 计划完成时间
     */
    @TableField(value = "plan_complate_date", updateStrategy = FieldStrategy.IGNORED,  jdbcType=JdbcType.TIMESTAMP)
    private Date planComplateDate;
    /**
     * 详细情况说明
     */
    @TableField(value = "content")
    private String content;

    public final static String NODE_ID = "node_id";
    public final static String ITEM_ID = "item_id";
    public final static String PREVIOUS_CODE = "previous_code";
    public final static String COMPLATE_STATE = "complate_state";
    public final static String COMPLATE_DATE = "complate_date";
    public final static String PLAN_COMPLATE_DATE = "plan_complate_date";
    public final static String CONTENT = "content";

    public final static String ALIAS = "ppn";

    public final static String NODE_ID_ALIAS = ALIAS + "." + NODE_ID;
    public final static String ITEM_ID_ALIAS = ALIAS + "." + ITEM_ID;
    public final static String PREVIOUS_CODE_ALIAS = ALIAS + "." + PREVIOUS_CODE;
    public final static String COMPLATE_STATE_ALIAS = ALIAS + "." + COMPLATE_STATE;
    public final static String COMPLATE_DATE_ALIAS = ALIAS + "." + COMPLATE_DATE;
    public final static String PLAN_COMPLATE_DATE_ALIAS = ALIAS + "." + PLAN_COMPLATE_DATE;
    public final static String CONTENT_ALIAS = ALIAS + "." + CONTENT;
}
